home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 1⁄5⁄90 / 0322-Re re- view initiali-Jan90 < prev    next >
Encoding:
Text File  |  1990-01-05  |  1.4 KB  |  36 lines  |  [TEXT/GEOL]

  1. Item    9744117                         4-Jan-90        15:03
  2.  
  3. From:   ROSENSTEIN1                     Rosenstein, Larry
  4.  
  5. To:     D1282        -> POWERUP.DEV     Power Up,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: re- view initialization
  10.  
  11. James,
  12.  
  13. Whenever someone says "persistent objects" people always feel that this is some
  14. magical capability that won't appear for 5 years.  If you want to consider
  15. issues from the point of view of an object oriented database, then this may be
  16. true.  If you take a pragmatic approach, then persistent objects are easy to
  17. implement, and the result is a simple mechanism that can be used to save
  18. objects to disk and read them back.
  19.  
  20. As far as re-initialization goes, the same basic mechanism could be adapted to
  21. handle this.  Right now, reading an object is a 2 step process: (1) create the
  22. object, (2) call ReadFrom to read its fields.  If you add step (1.5): call
  23. TObject.Initialize, then ReadFrom can assume the object is in a consistent
  24. state.  If it is written properly, then you should be able to call ReadFrom
  25. again to reinitialize the object.
  26.  
  27. This introduces a number of issues that my current implementation doesn't
  28. address.  (That's because the current implementation was designed to be easy to
  29. explain, and the minimum needed to be useful).  It's just a matter of deciding
  30. what you want to accomplish and doing it.  I think the implementation is
  31. relatively straightforward.
  32.  
  33. Larry Rosenstein
  34.  
  35.  
  36.